package part5;

/**
 * @author wcj
 * @Date 2021/5/13 17:14
 * @Version 1.0
 */
public class Burrito {
    Spiciness spiciness;

    public Burrito(Spiciness spiciness) {
        this.spiciness = spiciness;
    }

    public void describe() {
        System.out.println("this burrito is");
        switch (spiciness) {
            case SMALL:
                System.out.println("SMALL");
                break;
            case MIDDLE:
                System.out.println("MIDDLE");
                break;
            case LARGE:
                System.out.println("LARGE");
                break;
            case LARGER:
                System.out.println("LARGER");
                break;
            default:
                System.out.println("hhh");
        }
    }

    public static void main(String[] args) {
        Burrito burrito = new Burrito(Spiciness.LARGE);
        Burrito burrito1 = new Burrito(Spiciness.LARGER);
        burrito.describe();
        burrito1.describe();
    }
}
